﻿namespace WebAPI中实现属性注入.Services
{
    public class ConsoleLoggerService : ILoggerService
    {
        public void LogInformation(string message)
        {
            Console.WriteLine($"[{DateTime.Now:yyyy-MM-dd HH:mm:ss}] [INFO] {message}");
        }

        public void LogError(string message)
        {
            Console.WriteLine($"[{DateTime.Now:yyyy-MM-dd HH:mm:ss}] [ERROR] {message}");
        }
    }
}
